import xpinyin


def get_pinyin(t, splitter="-"):
    p = xpinyin.Pinyin()
    return p.get_pinyin(t, splitter=splitter)